<div class='last5blogs'>
<h2 class="block_title_red"><span class="navispan"><?php echo link_to('Последние заметки в блогах','blogs/index') ?> </span></h2>
<?php if(count($last5blogs)) { ?>
<ul id='karusel' class='jcarousel-skin-tango2'>
<?php foreach ($last5blogs as $blog) { ?>
<li style='width:160px'>
<div style='float:left'>
<img src='/uploads/avatars/thumbnail_80_80_n/<?php echo $blog['image'] ? $blog['image'] : 'noimage.jpg' ; ?>' />
</div>
<div class='authorlink'>
<?php echo link_to($blog['firstname'].'<br />'.$blog['lastname'],'blogs_author', array('id'=>$blog['user_id'],'pnumber'=>'1')); ?>
</div>
<div style='clear:both'>
<?php echo link_to($blog['title'],'blogs_view', array( 'id' => $blog['id'] )) ?>
</div>
<?php echo $blog['short'] ?>
</li>
<?php } ?>
</ul>
<?php } ?>
</div>

<script type="text/javascript">
jQuery(document).ready(function() {
    jQuery('#karusel').jcarousel({
        scroll:1
    });
});
</script>